﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ClientList.aspx.cs" Inherits="Client_ClientList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>客户资料</h2>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ClientID"
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="ClientID" HeaderText="ClientID" ReadOnly="True" SortExpression="ClientID"
                Visible="False" />
            <asp:BoundField DataField="客户姓名" HeaderText="客户姓名" SortExpression="客户姓名" />
            <asp:BoundField DataField="联系电话" HeaderText="联系电话" SortExpression="联系电话" />
            <asp:BoundField DataField="客户手机" HeaderText="客户手机" SortExpression="客户手机" />
            <asp:BoundField DataField="地址" HeaderText="地址" SortExpression="地址" />
            <asp:BoundField DataField="电子邮件" HeaderText="电子邮件" SortExpression="电子邮件" />
            <asp:BoundField DataField="QQ或MSN" HeaderText="QQ或MSN" SortExpression="QQ或MSN" />
            <asp:BoundField DataField="传真" HeaderText="传真" SortExpression="传真" />
            <asp:BoundField DataField="客户类型" HeaderText="客户类型" ReadOnly="True" SortExpression="客户类型" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
        SelectCommand="SELECT * FROM [GetClients]"></asp:SqlDataSource>
</asp:Content>
